#ifndef _SKBOOKNODE_HPP_
#define _SKBOOKNODE_HPP_

#include <time.h>

typedef unsigned long BookId;
typedef double Price;


struct SKBookNode
{
    SKBookNode() {}
    SKBookNode(BookId bookId, const std::string& authorName, time_t date, const std::string category, Price price): bookId_(bookId), authorName_(authorName), date_(date), category_(category), price_(price) {}
    SKBookNode(const SKBookNode& ref): bookId_(ref.bookId_), authorName_(ref.authorName_), date_(ref.date_), category_(ref.category_), price_(ref.price_) {}
    SKBookNode& operator=(const SKBookNode& ref)
    {
	bookId_ = ref.bookId_;
	authorName_ = ref.authorName_;
	date_ = ref.date_;
	category_ = ref.category_;
	price_ = ref.price_;
    }

    BookId bookId_;
    std::string authorName_;
    time_t date_;
    std::string category_;
    Price price_;
    bool isAvailable_;
};

#endif //_SKBOOKNODE_HPP_
